﻿#pragma once


// CCheckProjectTreeCtrl

class CCheckProjectTreeCtrl : public zxCheckProjectTreeCtrl
{
	DECLARE_DYNAMIC(CCheckProjectTreeCtrl)

public:
	CCheckProjectTreeCtrl();
	virtual ~CCheckProjectTreeCtrl();

protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnNMRClick(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnRmenuProjectProperty();
	afx_msg void OnRmenuProjectCase();
	afx_msg void OnRmenuProjectDatasourceProperty();
	afx_msg void OnRmenuRemoveDataSource();
	afx_msg void OnRmenuProjectDatasetProperty();
	afx_msg void OnRmenuProjectDatasetRemove();
	afx_msg void OnRmenuProjectDatasetCheckMetadata();
	afx_msg void OnRmenuProjectDatasetAddToMap();
	afx_msg void OnRmenuProjectCheckResultExport();

protected:
	void AddTifToMap(const char* szTifPath);
	void AddLandsatToMap(const char* szLansatPath);

	IRasterLayerPtr OpenLayerTif(CString strPath);
	IGroupLayerPtr OpenLayerLandsat5(const char* szPath);
};


